<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
error_reporting(E_ALL);
class Vcode extends CI_Controller {

	public function __construct()
	{
	      parent::__construct();
	      //$this->load->library('Authcode');
		  //$this->load->library('verify');
	      
	}
	public function index()
	{
		$this->load->library('Verify');
		$this->verify->doimg();
		//$this->session->set_userdata('auth_code',$this->verify->getCode());
		//$this->verify->getCode();
	}
	
	public function verify()
	{
		//$this->verify->doimg(); 
		//echo $this->session->userdata('auth_code');
	}
	
	public function authcode()
	{
		$this->load->library('Authcode');
		$this->authcode->show();
	}
	
	public function code()
	{
		//$this->verify->getCode(); 
		echo $this->session->userdata('auth_code');
		//echo $this->session->flashdata('userErr');
	}
}
